<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
   <link href="themes/css/ui.common.css" rel="stylesheet"
			type="text/css" />
		<link href="themes/css/ui.child.css" rel="stylesheet"
			type="text/css" />
		<link href="themes/css/ui.tips.css" rel="stylesheet"
			type="text/css" />
		<link href="themes/base/jquery.ui.button.css" rel="stylesheet"
			type="text/css" />
		<link id="skin_css" rel="stylesheet" type="text/css"
			href="themes/css/ui.c.blue.css" />
		<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
		<script src="Scripts/jquery-ui-1.8.custom.min.js"
			type="text/javascript"></script>
		<script src="Scripts/jquery.json-2.2.min.js"
			type="text/javascript"></script>
		<script src="Scripts/jquery.easyui.min.js"
			type="text/javascript"></script>
		<script src="Scripts/ui.admincp.js" type="text/javascript"
			charset="UTF-8"></script>
		<script src="Scripts/ui.tips.js" type="text/javascript"></script>
		<script src="Scripts/ui.default.js" type="text/javascript"
			charset="UTF-8"></script>
		<script src="js/ui.editableObject.js" type="text/javascript"></script>
		<script src="js/goodsOrderHandler.js" type="text/javascript"></script>
		<script src="js/bussiness.goodsReturn.js" type="text/javascript"></script>
		<title>查看账单申请</title>
  </head>
  <SCRIPT type="text/javascript">
			var searching = false;
				$(function(){
					$("#link_page_prev,#link_page_next").click(function(){
			    		var currentPage = $(this).attr("currentPage");
			    	 
			    		goToPage(currentPage);
			    	}); 
			    	
			    	$("#searchButton").click(function(){
						searching=true;
			    		goToPage(1);
			    	});
			    	
			    	initSearch();
			    	registeRowFuncButton();
				});
				
				function initSearch()
				{
				    $("#txt_noticeTitle").val();
				}
			 
				function goToPage(currentPage)
				{
				    var title = $("#txt_noticeTitle").val();
				    var place =$("#ddl_place").val(); 
					var inOrOut=$("#inOrOut").val();
				     var states=$("#states").val();
					location.href = "goodsinfo.action?currpage="+currentPage+"&inOrOut="+inOrOut+"&states="+states;
				}
				</SCRIPT>
  <body>
  	 <div class="PageChild_Title">
        <img src=" themes/images/default/icons/archives.png" class="PageChild_Tbtnpic" />
        <span class="PageChild_separate"></span><span class="PageChild_TbtnText">
            <h2>查看财务申请</h2>
        </span><span class="PageChild_separate"></span>
        <div id="marker" class="red-tips">
        </div>
        <div class="clear">
        </div>
    </div>
   <!-- 搜索栏 -->
		<div>
		
			<div class="PageChild_Where">
				<table>
					<tr>
					<td>
							按出入帐查询:<s:select id="inOrOut" theme="simple" list="#{1:'入账',-1:'出账'}" headerKey="0" headerValue="全部" value="inOrOut"></s:select> 
							根据状态查询:<s:select id="states" theme="simple" list="#{-3:'正在审核',-1:'审核失败',-2:'审核成功'}" listKey="key" listValue="value"  headerKey="0" headerValue="--全部--" value="states"></s:select>  
							<button id="SearchButton" class="o-btn">
								搜索
							</button>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<!-- 搜索栏结束 -->
		<!-- 列表栏开始 -->
		<div class="PageChild_List">
	
			<table width="100%" border="0" cellspacing="0"
				style="text-align: left">
				<tbody class="PageChild_List_head">
					<tr>
						<td width="16">
							<img src="themes/images/default/icons/pcde_314.png" width="16"
								height="16" />
						</td>
						<td>
							账单标题
						</td>

						<td>
							金额
						</td>
						<td>
							日期
						</td>
						<td>
							出/入帐
						</td>
						<td>
							账单说明
						</td>
						<td>
							状态
						</td>
					</tr>
				</tbody>
				<tbody class="PageChild_List_main" style="text-align: left">
					<s:if test="accountList != null && accountList.size != 0">
					<s:iterator value="accountList" var="item">
						<tr class='td_no_bord'>
							<td class="td_width25">
								<span title="24"><input id="Chk_Num" type="checkbox"
										name="ReptShow$ctl01$Chk_Num" /> </span>
							</td>
							<td>
								<span>${item.title}</span>
							</td>
							<td>
								<span> ${item.price}</span>
							</td>
							<td>
								<span> ${item.createTime} </span>
							</td>
							<td>
								<span> ${item.inOrOut} </span>
							</td>
							<td>
								<span> ${item.notes} </span>
							</td>
							<td>
							<a class="ui-link-edit-button" id="sender_${item.accountId}"
									href="javascript:void(0);" state="0" entityId="${item.accountId}">
									<img src="themes/icons/info.png" title="进行编辑" /> </a> &nbsp;
							</td>
						</tr>
					</s:iterator>
					</s:if><s:else>
						<tr><td colspan="7">无记录</td></tr>
					</s:else>
				</tbody>
			</table>

		</div>
		<!-- 列表栏结束 -->
  </body>
</html>
